<?php
#index.php/install/index 
session_start();
define("ROOT",__DIR__);
require_once ( ROOT."/conf/conf.php");
$path  = ROOT."/public/#data/y_cms.sql";
$lock  = ROOT."/public/#data/install.lock";
if(is_file($lock)){
	exit("请删除$lock");
}else{
	touch($lock);
} 
$sql = file_get_contents($path);
YC::make("DB")->exec($sql);
YC::html("安装成功。。。");
?>